indentedtext
Command/ startitemgroup
Command/ startlabeltext
Command/ startlinenote
Command/ startlines
Command/ startmakeup
Command/ startmathalignment
Command/ startmathcases
Command/ startmathmatrix
Command/ startmixedcolumns
Command/ startnarrower
Command/ startnote
Command/ startpagecolumns
Command/ sta
ffset=.5ex,
foregroundcolor=white]
{\setmathmatrixanchoring[yes]% left|right|both|yes
\startmathmatrix
\NC a_1 \NC a \NC b \NC c\NR
\NC a_2 \NC a \NC b \NC c\NR
\NC a_3 \NC a^2 \NC b \NC c\NR
\NC a_4 \NC a \NC b_2 \NC c\NR
\NC a_5 \NC a \NC b \NC c\
efineoverlay[whatever-5][\useMPgraphic{whatever-5}]
\framed
[synchronize=background,
align=normal,
frame=off,
background=whatever-5]
{\setmathmatrixanchoring[both]% left|right|both|yes
% {\setmathmatrixanchoring[right]% left|right|both|yes
\startmathmatrix
\NC a1 \N
"three", 0, 1)
withcolor "blue" withtransparency (1,.75) ;
setbounds currentpicture to OverlayBox ;
\stopuseMPgraphic
\defineoverlay[whatever-1][\useMPgraphic{whatever-1}]
\defineoverlay[whatever-2][\useMPgraphic{whatever-2}]
\framed
[synchronize=yes,
align=no
graphics like in your example you can
use framed.
\starttext
\startformula
A\,
\startmathmatrix[left=\left(,right=\right)]
\NC \framed[width=1em,height=1em,frame=off,bottomframe=on]{} \NC
\framed[width=1em,height=1em,frame=off,bottomframe=on,leftframe=on]{}
\NR
in your example you can use
framed.
\starttext
\startformula
A\,
\startmathmatrix[left=\left(,right=\right)]
\NC \framed[width=1em,height=1em,frame=off,bottomframe=on]{} \NC
\framed[width=1em,height=1em,frame=off,bottomframe=on,leftframe=on]{} \NR
\NC \framed[width=1em,height=1em,frame
]%
\simplematrixtoks\emptytoks
\startusemathstyleparameter\simplematrixparameter
\appendtoks
\bgroup
\startmathmatrix
[
\c!distance=\simplematrixparameter\c!distance,
\c!left=\simplematrix_left,
\c!right
;matwe...@indiana.edu> wrote:
>
> Same here. Curiously, the Garden version is ok, while the newest beta seems
> to make all alignments centered.
>
>
> Minimal Example:
>
>
> \starttext
> \startformula
> A=\startmathmatrix[align={right,right}]
> \NC1\NC-1\NR
&g
Same here. Curiously, the Garden version is ok, while the newest beta seems to
make all alignments centered.
Minimal Example:
\starttext
\startformula
A=\startmathmatrix[align={right,right}]
\NC1\NC-1\NR
\NC-1\NC1\NR
\stopmathmatrix
\stopformula
\stoptext
Matthias
> On Nov 12, 2017, at
\startmathmatrix
\NC long line \NC 1 \NR
\NC 1 \NC long line \NR
\stopmathmatrix
\stopformula
\stoptext
On Mon, 2017-09-11 at 10:03 +0200, Hans Hagen wrote:
> On 9/11/2017 6:59 AM, Henri wrote:
> >
> > Dear devs,
> >
> > Thank you very much for fixing this one
---
\starttext
\placeformula
\startformula
\sum_{\startsubstack
\NC k \NR
\NC \omega_n \NR
\stopsubstack}
\stopformula
\placeformula
\startformula
\startmathmatrix[left=\left|,right=\right|]
\NC 0 \NC 1 \NR
\NC 1 \NC 0 \NR
\stopmathmatrix
= -1 .
\stopformula
\stoptext
\sum_{\startsubstack
\NC k \NR
\NC \omega_n \NR
\stopsubstack}
\stopformula
\placeformula
\startformula
\startmathmatrix[left=\left|,right=\right|]
\NC 0 \NC 1 \NR
\NC 1 \NC 0 \NR
\stopmathmatrix
= -1 .
\stopformula
\stoptext
below
which incorporates your requested changes. Fails with 2017.09.07 23:44 (It
worked before, so your
version 2017.09.05 15:10 seems to be unaffected).
---
\starttext
\startformula
\startmathalignment
\NC \psi_{+,\mathord\Uparrow} ...
\startmathmatrix
\NC 0 \NC 1 \NR
\NC 1
ttext
>
> \placeformula
> \startformula
> \startmathalignment
> \NC \psi_{+,\Up} ...
> \startmathmatrix
> \stopmathmatrix
> \NR
> \NC \psi_{+,\Dn} ...
> \NR
> \stopmathalignment
> \stopformula
>
> \stoptext
_
}
\define\Dn{\mathord\Downarrow}
\starttext
\placeformula
\startformula
\startmathalignment
\NC \psi_{+,\Up} ...
\startmathmatrix
\stopmathmatrix
\NR
\NC \psi_{+,\Dn} ...
\NR
\stopmathalignment
\stopformula
\stoptext
the example below which produces a more
> > > > > > > balanced output. Could
> > > > > > > this somehow be made the default behaviour or something?
> > > > > > > Currently it requires the
> > > &
> > > > it requires the user
> > > > > > to notice that vertical spacing is off and correct it manually,
> > > > > > including adding a blank
> > > > > > lin
equires the user to notice
>>>>> that vertical spacing is off and correct it manually, including adding a
>>>>> blank line before the formula to prevent grid=tolerant being applied to
>>>>> the paragraph.
>>>>>
>>>&g
. Could this somehow be made the default behaviour or something?
>>>> Currently it requires the user to notice that vertical spacing is off and
>>>> correct it manually, including adding a blank line before the formula to
>>>> prevent grid=tolerant being ap
pacing is off and correct it
>>> manually, including adding a blank line before the formula to prevent
>>> grid=tolerant being applied to the paragraph.
>>>
>>> Cheers, Henri
>>>
>>> ---
>>>
>>> \setuplayout[grid=yes]
>>>
t;>
>> Cheers, Henri
>>
>> ---
>>
>> \setuplayout[grid=yes]
>> \showgrid
>>
>> \starttext
>>
>> \input knuth
>> \startformula
>> \
> \input knuth
> \startformula
> \vrule % make lineheight and depth visible
> \startmathmatrix
> \NC A \NR
> \NC B \NR
> \NC C \NR
> \stopmathmatrix
> \stopformula
> \input tufte
>
> \stoptext
>
__
=tolerant being applied to the paragraph.
Cheers, Henri
---
\setuplayout[grid=yes]
\showgrid
\starttext
\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte
\stoptext
heers, Henri
>>>>
>>>> ---
>>>>
>>>> \setuplayout[grid=both]
>>>> \showgrid
>>>>
>>>> \starttext
>>>>
>>>> \input knuth
>>>> \startformula
>>>> \vrule % make lineheight
low.
Cheers, Henri
---
\setuplayout[grid=both]
\showgrid
\starttext
\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte
\stoptext
The default spacing modell (3) before and after formulas
>>
>> How can I fix that? MWE is below.
>>
>> Cheers, Henri
>>
>> ---
>>
>> \setuplayout[grid=both]
>> \showgrid
>>
>> \starttext
>>
>> \input knuth
>> \startformula
>> \vrule % make lineheight and depth visible
>> \start
height and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
\NC C \NR
\stopmathmatrix
\stopformula
\input tufte
\stoptext
The default spacing modell (3) before and after formulas breaks grid
alignment
because when you use another alternative (1 or 2) the alignment is correct.
%\setconstan
gt;
> \starttext
>
> \input knuth
> \startformula
> \vrule % make lineheight and depth visible
> \startmathmatrix
> \NC A \NR
> \NC B \NR
> \NC C \NR
> \stopmathmatrix
> \stopformula
> \input tufte
>
> \stoptext
>
___
of the line definitely
does not coincide with what one would expect.
How can I fix that? MWE is below.
Cheers, Henri
---
\setuplayout[grid=both]
\showgrid
\starttext
\input knuth
\startformula
\vrule % make lineheight and depth visible
\startmathmatrix
\NC A \NR
\NC B \NR
atrix command in some way...
i don't know any alternative way to create a matrix. any help would
be appreciated.
Your code works fine here but I suggest to use ConTeXt’s own matrix
environment.
\starttext
\startformula
S =\startmathmatrix[left=\left(,right=\right)]
\NC \sigma_{x} \NC
ve way to create a matrix. any help would be
appreciated.
Your code works fine here but I suggest to use ConTeXt’s own matrix
environment.
\starttext
\startformula
S =\startmathmatrix[left=\left(,right=\right)]
\NC \sigma_{x} \NC \tau_{xy} \NC \tau_{xz} \NR
\NC \tau_{yx} \NC
[#name][#options]#matrix%
{\begingroup
\edef\currentsimplematrix{#name}%
\setupsimplematrix[#name][#options]%
\simplematrixtoks\emptytoks
\startusemathstyleparameter\simplematrixparameter
\appendtoks
\bgroup
\startmathmatrix
\setupmathmatrix[left={\left[\,}, right={\,\right]}]
\starttext
\startformula
\startmathmatrix \NC 1 \NR \NC 2 \NR \NC 3 \NR \stopmathmatrix
\stopformula
\startformula \startalign
\NC \startmathmatrix \NC 1 \NR \NC 2 \NR \NC 3 \NR \stopmathmatrix \NR
\stopalign \stopformula
\stoptext
.
Thanks for the quick response,
Andreas From
\setupmathmatrix[left={\left[\,}, right={\,\right]}]
|
\starttext
\startformula
\startmathmatrix\NC1 \NR\NC2 \NR\NC3 \NR\stopmathmatrix
\stopformula
\startformula\startalign
\NC\startmathmatrix\NC1 \NR\NC2 \NR\NC3 \NR\stopmathmatrix\NR
the previous text, so the pdf and xml
are fine in Context ?
Why not use \startmathalign etc. See:
http://dl.contextgarden.net/myway/mathalign.pdf
Sorry, I meant, \startmathmatrix (or \startmatrix) etc.
Aditya
]
}}
\stopnotmode
\completecontent[alternative=a,pagestyle=slanted,distance=2pt]
\page
\startchapter[title={Gry macierzowe\time{15--20}}]
\startexercises
\startitem
Jakie sÄ
strategie optymalne dla obu graczy w~grze o~poniższej
macierzy?
\startformula
\startmathmatrix[n=2,left
macierzowe}]
\startexercises
\startitem
Jakie sÄ
strategie optymalne dla obu graczy w~grze o~poniższej
macierzy?
\startformula
\startmathmatrix[n=2,left={\left(\,},right={\,\right)},align=right]
\NC 1 \NC 2 \NR
\NC 3 \NC 4 \NR
\stopmathmatrix
I'm trying to make a simple Augmented matrix using \startmathmatrix
and cannot seem to get \VL working correctly. I'd assume to do an
augmented matrix I'd do:
\startformula
\left[
\startmathmatrix[n=4]
1 \NC 1 \NC 1 \VL 1\NR
0 \NC 1 \NC -1 \VL 2\NR
0 \NC 0 \NC 2 \VL 8
\stopmathmatrix
\right
Dear All,
I have fixed this by using:
label.rt(textext(\framed[frame=off,align=right]{One\\Two}),origin);
And what about proper tables there?
Replacing One\\Two in the above code with
$ \startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC 1 \NR \stopmathmatrix $
or
\starttable{|cm|cm|} \NC 1 \NC 1
On Sat, 22 Aug 2009, Michail Vidiassov wrote:
Dear All,
I have fixed this by using:
label.rt(textext(\framed[frame=off,align=right]{One\\Two}),origin);
And what about proper tables there?
Replacing One\\Two in the above code with
$ \startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC 1 \NR
Aditya Mahajan wrote:
Hans, should we add this to strc-ali?
sure, i'll also do the same with getbuffer, as often using buffere is
convenient in such cases:
\unexpanded\def\getbuffer
{\dodoubleempty\dogetbuffer}
\starttext
\startbuffer[a]
$\startmathmatrix \NC 1 \NC 1 \NR \NC 1 \NC
Dear Aditya and All,
On Sun, 16 Aug 2009, Aditya Mahajan wrote:
is there a replacement of hdotsfor from LaTeX to fill
several cells in a matrix row with one long series of dots?
Not that I know of. Currently, you can manually do this using TeX primitives.
\startformula
\startmathmatrix
\startmathmatrix
\NC a \NC b \NC c \NR
\NC \spanomit\spanomit{\dotfill} \NR
\NC e \NC d \NC adlsadjsak \NR
\stopmathmatrix
\startmathmatrix
\NC a \NC b \NC c \NR
\NC 45 \NC \omit\spanomit{\dotfill} \NR
\NC e \NC d \NC adlsadjsak \NR
\stopmathmatrix
\stopformula
\stoptext
Hans, can
best result is
\startformula
\startmathmatrix[left={\left(\,},right={\,\right)}]
\NC 1 \NC \vl \NC 2 \NR
\NC \hl \NC \vl \NC \hl \NR
\NC 3 \NC \vl \NC 4 \NR
\stopmathmatrix
\stopformula
But the result is not ok.
In addition, I would prefer dashed lines.
Thanks,
Jiri Cigler
\noalign{\vskip 0.2em}
\NC \text{subject to} \NR
\NC \quad
\startmathmatrix[n=9,align={middle,middle,middle,
middle,middle,middle,right,middle,middle},
distance=0.3em]
\NC a_{11} x_1 \NC + \NC a_{12} x_2 \NC +
\NC \cdots \NC + \NC a_{1n} x_n \NC = \NC b_1
to} \NR
\NC \quad
\startmathmatrix[n=9,align={middle,middle,middle,
middle,middle,middle,right,middle,middle},
distance=0.3em]
\NC a_{11} x_1 \NC + \NC a_{12} x_2 \NC +
\NC \cdots \NC + \NC a_{1n} x_n \NC = \NC b_1 \NR
\NC a_{21} x_1 \NC + \NC a_{22
first setup lines, matrix glues to the
subsequent text.
The use of $$ ... $$ for display math will not give you correct
spacing. Always use \startformula ... \stopformula
BTW, there is also \startmathmatrix in ConTeXt which allows you to
\definemathmatrix[pmatrix]
[left={\left
code into Context automatically using a perl script, and
it's therefore much easier to stick to whatever LaTeX code works. Basically,
I just want something comparable to the array environment in LaTeX, which
works very nicely.
There is \startmathmatrix \stopmathmatrix which is equivalent
this maybe?
\def\substack#1%
{\begingroup
\let\\\cr
\startmathmatrix #1\stopmathmatrix
\endgroup}
Probably needs a bit of tweaking to make it look better
(perhaps a [strut=no] parameter?).
--- On Jan 28, Vit Zyka wrote ---
What about use math primitive \atop:
\def
%
{\begingroup
\let\\\cr
\startmathmatrix #1\stopmathmatrix
\endgroup}
Probably needs a bit of tweaking to make it look better
(perhaps a [strut=no] parameter?).
--- On Jan 28, Vit Zyka wrote ---
What about use math primitive \atop:
\def\substack#1%
{\begingroup
\let\\\atop
:
The definition from m-newmat is at least partly superceded by the
new core math definitions Hans added last week, so a new implementation
would be better.
Can you suggest something?
Like this maybe?
\def\substack#1%
{\begingroup
\let\\\cr
\startmathmatrix #1\stopmathmatrix
\endgroup}
Probably
Aditya Mahajan wrote:
The definition from m-newmat is at least partly superceded by the
new core math definitions Hans added last week, so a new implementation
would be better.
Can you suggest something?
Like this maybe?
\def\substack#1%
{\begingroup
\let\\\cr
\startmathmatrix #1
\\\cr
\startmathmatrix #1\stopmathmatrix
\endgroup}
Probably needs a bit of tweaking to make it look better
(perhaps a [strut=no] parameter?).
What about use math primitive \atop:
\def\substack#1%
{\begingroup
\let\\\atop
#1
\endgroup}
Vit
53 matches
Mail list logo